package com.yanchi.adapter;

public class Test {
    public static void main(String[] args) {

        // 电脑
        Computer computer = new Computer();
        // 网线
        NetworkWire networkWire = new NetworkWire();

        // 转接头，适配器
        Adapter adapter = new Adapter(networkWire);

        // 电脑使用适配器实现上网
        computer.net(adapter);

    }
}
